<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0 , user-scalable=0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>F6 SUPERSHOT官网</title>
  <link rel="stylesheet" href="./static/css/reset.css">
  <link rel="stylesheet" href="./static/css/public.css">
  <link rel="stylesheet" href="./static/css/buy.css">
</head>
<body>
  <header class="clearfix">
    <h1 class="logo fl"><a href="./home.html"><img src="./static/img/f6_logo.png" alt=""></a></h1>
    <div class="swiper-btn-box fl flex">
      <div class="f6-btn1 flex"><img src="./static/img/f6-btn1.png" alt=""></div>
      <div class="f6-btn2 flex"><img src="./static/img/f6-btn2.png" alt=""></div>
      <div class="f6-btn3 flex"><img src="./static/img/f6-btn3.png" alt=""></div>
      <div class="f6-btn4 flex"><img src="./static/img/f6-btn4.png" alt=""></div>
    </div>
  </header>
  <section class="main">
    <div class="buy-warp">
      <img src="">
      <a class="jd" target="_parent" href="https://shop.m.jd.com/?shopId=1000132201&utm_source=iosapp&utm_medium=appshare&utm_campaign=t_335139774&utm_term=CopyURL&ad_od=share"></a>
      <a class="tianmao" href="javascript:;"></a>
      <a class="youzan" target="_parent" href="https://h5.youzan.com/v2/showcase/homepage?alias=qoxeDizOv2"></a>
      <div class="buy-partner">
        <div class="buy-partner-inner">
          <img src="./static/img/buy-partner.png">
        </div>
      </div>
    </div>
    <div class="tianmao-token-mask hide">
      <div class="tianmao-token-content">
        <div class="tianmao-token"><img src="./static/img/tianmao_token.png" alt=""></div>
        <div class="tianmao-token-close"></div>
        <a href="https://m.tb.cn/h.eTPHZ8R" target="_parent"></a>
        <p id="foo">￥WnYAYThX1Gj￥</p>
        <button class="btn" data-clipboard-action='copy' data-clipboard-target='#foo'>点击复制</button>
      </div>
      <div class="copy-prompt hide">复制成功</div>
    </div>
  </section>
  <footer>
    <nav>
      <ul class="footer-nav flex justify-center">
        <li class="footer-nav-about">
          <a href="./about.html"></a>
        </li>
        <li class="footer-nav-call">
          <a href="./call.html"></a>
        </li>
        <li class="footer-nav-buy">
          <a href="./buy.html"></a>
        </li>
      </ul>
    </nav>
  </footer>
  <div class="opener"></div>
  <div class="opener1"></div>
  <script src="./static/js/clipboard.js"></script>
  <script src="./static/js/zepto.min.js"></script>
  <script src="./static/js/touch.js"></script>
  <script src="./static/js/fx.js"></script>
  <script src="./static/js/zepto.cookie.min.js"></script>
  <script>
    window.onload = function(){
      //复制到剪切板
      var clipboard=new ClipboardJS('.btn');
      clipboard.on('success',function(e){
        $('.copy-prompt').removeClass('hide');
        setTimeout(function(){
          $('.copy-prompt').addClass('hide');
        },
        3000)
      })
      clipboard.on('error',function(e){
        
      })
      $('.call-content img').attr('src')
      var sWidth = $(window).width()*window.devicePixelRatio
      var sHeight = $(window).height()*window.devicePixelRatio
      var systemInfo = navigator.userAgent;
      if (systemInfo.indexOf('Android') > -1 || systemInfo.indexOf('Linux') > -1) {//安卓手机
        $('.buy-warp .buy-partner').css('width','2.3rem')
        $('.buy-warp .buy-partner').css('padding-top','1.13rem')
        $('.buy-warp>img').attr('src','./static/img/buy-1242x2085.jpg')
        $('.buy-warp>img').css('with','100%')
      } else if (systemInfo.indexOf('iPhone') > -1) {//苹果手机
        if(sWidth == 750){
          $('.buy-warp>img').attr('src','./static/img/buy-750x1001.jpg')
          $('.buy-warp>img').css('height','10.01rem')
          $('.jd').css({
            width:"1.2rem",
            height:"1.4rem",
            top: "2.1rem",
            left: "2.4rem" 
          })
          $('.tianmao').css({
            width:"1.2rem",
            height:"1.4rem",
            top: "5.1rem",
            left: "2.4rem" 
          })
          $('.youzan').css({
            width:"1.2rem",
            height:"1.3rem",
            top: "7.9rem",
            left: "2.4rem" 
          })
        }else if(sWidth == 1125){
          $('.buy-warp .buy-partner').css('width','2rem')
          $('.buy-warp .buy-partner').css('padding-top','1.32rem')
          $('.opener').css('left','87%')
          $('.opener1').css('left','87%')
          $('.buy-warp>img').attr('src','./static/img/buy-1125x1865.jpg')
          $('.buy-warp>img').css('height','12.43rem')
          $('.jd').css({
            width:"1.45rem",
            height:"1.55rem",
            top: "3.35rem",
            left: "2.55rem" 
          })
          $('.tianmao').css({
            width:"1.53rem",
            height:"1.55rem",
            top: "6.65rem",
            left: "2.58rem"  
          })
          $('.youzan').css({
            width:"1.45rem",
            height:"1.4rem",
            top: "9.8rem",
            left: "2.63rem" 
          })
        }else if(sWidth == 1242 && screen.height == 736 && screen.width == 414){
          $('.buy-warp .buy-partner').css('width','2.3rem')
          $('.buy-warp .buy-partner').css('padding-top','1.13rem')
          $('.buy-warp>img').attr('src','./static/img/buy-1242x1677.jpg')
          $('.buy-warp>img').css('height','10.12rem')
          $('.jd').css({
            width:"1.23rem",
            height:"1.3rem",
            top: "2.05rem",
            left: "2.51rem" 
          })
          $('.tianmao').css({
            width:"1.23rem",
            height:"1.3rem",
            top: "4.95rem",
            left: "2.56rem" 
          })
          $('.youzan').css({
            width:"1.25rem",
            height:"1.25rem",
            top: "7.7rem",
            left: "2.55rem" 
          })
        }else if(sWidth == 1242 && screen.height == 896){
          $('.buy-warp .buy-partner').css('width','2.3rem')
          $('.buy-warp .buy-partner').css('padding-top','1.13rem')
          $('.buy-warp>img').attr('src','./static/img/buy-1242x2085.jpg')
          $('.buy-warp>img').css('height','12.59rem')
        }else{
          $('.buy-warp .buy-partner').css('width','2.3rem')
          $('.buy-warp .buy-partner').css('padding-top','1.13rem')
          $('.buy-warp>img').attr('src','./static/img/buy-1242x2085.jpg')
          $('.buy-warp>img').css('with','100%');
        }
      }else{
        $('.buy-warp .buy-partner').css('width','2.3rem')
        $('.buy-warp .buy-partner').css('padding-top','1.13rem')
        $('.buy-warp>img').attr('src','./static/img/buy-1242x2085.jpg')
        $('.buy-warp>img').css('with','100%');
      }
    }
    $('.logo').on('tap',function(){
      window.location.href = './index.html';
    })
    $('.swiper-btn-box').children().on('tap',function(){
      var num = $(this).index();//COOKIE只能在真机上起作用
      if(num == 4){
        $.fn.cookie('index', 0);
        window.location.href = './details.html';
      }else{
        $.fn.cookie('index', num);
        window.location.href = './details.html';
      }
    })
    $('.buy-partner-inner').swipeUp(function(){
      $('.opener').hide();
      $('.opener1').hide();
    })
    $('.buy-partner-inner').on('mousewheel',function(){
      $('.opener').hide();
      $('.opener1').hide();
    })
    //箭头动画
    var timerN = setInterval(function(){
      $('.opener').animate({
        bottom: '1.14rem'
      },500,function(){
        $('.opener').animate({
          bottom: '1.04rem'
        },500)
      })
    },1200)
    var timerH = setInterval(function(){
      $('.opener1').animate({
        bottom: '1.36rem'
      },500,function(){
        $('.opener1').animate({
          bottom: '1.26rem'
        },500)
      })
    },1200)
    //天猫口令
    $('.tianmao').on('tap',function(){
      $('.tianmao-token-mask').removeClass('hide')
    })
    $('.tianmao-token-close').on('tap',function(){
      $('.tianmao-token-mask').addClass('hide')
    })
  </script>
</body>
</html>